﻿using System;
using System.Collections.Generic;
using System.Data;
namespace ZX.HIS.IDAL
{
	/// <summary>
	/// 接口层UserInfo
	/// </summary>
	public interface IUserInfo
    {
        #region 自写方法

        /// <summary>
        /// 人员表信息
        /// </summary>
        /// <returns></returns>
        List<ZX.HIS.Model.UserInfo> showUserInfo();
      

        /// <summary>
        /// 人员表分页显示
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        List<ZX.HIS.Model.UserInfo> alluserinfo(int PageIndex, int PageSize, int HospitalId);

      
        /// <summary>
        /// 人员表总记录数
        /// </summary>
        /// <returns></returns>
        int COUNTUserInfo(int HospitalId);
      
        /// <summary>
        /// 权限显示
        /// </summary>
        /// <returns></returns>
        List<ZX.HIS.Model.AuthorInfo> allAuthorInfo();

        /// <summary>
        /// 人员管理表添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int addtbUserInfo(ZX.HIS.Model.UserInfo model);

        /// <summary>
        /// 添加人员，权限派生表
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="AuthorId"></param>
        /// <returns></returns>

        int addtbAuthorUserInfo(int UserId, string AuthorId);

        /// <summary>
        ///人员管理表 删除
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        int delUserInfo(int state, int UserId);

        /// <summary>
        ///  人员，权限派生表信息
        /// </summary>
        /// <returns></returns>
        List<ZX.HIS.Model.AuthorUserInfo> allAuthorUserInfo();

        /// <summary>
        /// 修改人员表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int updaUserInfo(ZX.HIS.Model.UserInfo model);
      
        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(string UserName,string UserPhone,int UserId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.UserInfo model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.UserInfo model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int UserId);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(string UserName,string UserPhone,int UserId);
        //bool DeleteList(string UserIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.UserInfo GetModel(int UserId);
        //ZX.HIS.Model.UserInfo DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  成员方法
		#region  MethodEx

		#endregion  MethodEx
	} 
}
